package com.zhiyou.service.impl;

import com.zhiyou.dao.LesseeDao;
import com.zhiyou.model.Contract;
import com.zhiyou.model.Lessee;
import com.zhiyou.service.LesseeService;

import java.util.HashMap;
import java.util.List;

public class LesseeServiceImpl implements LesseeService {
    LesseeDao l=new LesseeDao();
    @Override
    public int getLesseeNum(HashMap<String,String> keywordMap) {
        return l.getLesseeNum(keywordMap);
    }

    @Override
    public List<Lessee> getLessee(int pageNoL, int pageSize,HashMap<String,String> keywordMap) {
        return l.getLessee(pageNoL,pageSize,keywordMap);
    }

    @Override
    public void deleteById(int lid) {
        l.deleteById(lid);
    }

    @Override
    public void addNew(Lessee lessee) {
        l.addNew(lessee);
    }

    @Override
    public Lessee selectById(int lid) {
        return l.selectById(lid);
    }

    @Override
    public void updateNew(Lessee lessee) {
        l.updateNew(lessee);
    }
}
